from tkinter import *

N=int(input("Размер="))
x=0
y=0

coords = [0*N,0*N,10*N,0*N,10*N,10*N,20*N,10*N,20*N,20*N,0*N,20*N]#12

root = Tk()
root.title("ИТ Марафон")
root.geometry ("500x500")

canvas = Canvas(bg="white" ,width=500,  height=500)
canvas.pack(anchor=CENTER, expand=1)

canvas.create_polygon(coords)

root.mainloop()


if n==0 and x>0 and x<=500 and y>=0 and y<=500 :
    pass
else:
    if n>0 and 0*n+x>=0 and 0*n+y>=0 and 20*n+x<=500 and 20*n+y<=500 :
            pass
    else:
            if n<0 and 20*n+x>=500 and 20*n+y>=500 and 0*n+x<=500 and 0*n+y<=500 :
                pass
            else:
                print("Размер фигуры превышает размер поля")
                exit()

canvas.create_polygon (coards [0] *N+X, coords [1] *N+Y,
                                                   coards [2] *N+X, coords [3] *N+Y,
                                                   coards [4] *N+X, coords [5] *N+Y,
                                                   coards [6] *N+X, coords [7] *N+Y,
                                                   coards [8] *N+X, coords [9] *N+Y,
                                                   coards [10] *N+X, coords [11] *N+Y)
root.mainloop()
